K8s Events
What is the Kubernetes Event?
Kubernetesが管理するresourceに関わるreal-time informationを格納/伝達する仕組みとして標準化された仕組み.
Event自体も一つのKubernetes resourceであり,
それぞれが"どのResourceに関わるEventか"を理解している( .spec.involvedObject ).
各resourceが .status.eventsを持つわけではない.
Node resource example
$ kubectl describe nodes kind-control-plane
https://scrapbox.io/files/60f0d2e6d1fc7d001ca98358.png
table:printcolumns
Type string {Normal, Warning}のどちらかを取る
Reason string Eventの種類/趣旨
Age timeDuration 最後に発行されたeventのtimestamp
From string eventを発行したk8s componentの名前
Message string debugに役立つ詳細な情報
Reasonの同じeventについては,
短いスパンで複数回発行された場合自動的にbunchされて表示.
xN over Tという表記は,時間T以内にN回のevent発行が確認.
Links
Podを例にResource inspectを行うexample
API reference